package cn.hncu.booksManagementSystem.in.business.ebo;

import java.util.Collection;

import cn.hncu.booksManagementSystem.in.business.ebi.InMainEbi;
import cn.hncu.booksManagementSystem.in.dao.dao.InMainDAO;
import cn.hncu.booksManagementSystem.in.dao.factory.InMainDaoFactory;
import cn.hncu.booksManagementSystem.in.vo.InMainModel;
import cn.hncu.booksManagementSystem.in.vo.InMainQueryModel;
/**
 * CreateTime: 2018年4月22日 上午9:54:17	
 * @author 宋进宇  Email:447441478@qq.com
 * Description:
 *	InMainEbi实现类
 */
public class InMainEbo implements InMainEbi{
	//注入inMainDAO
	InMainDAO inMainDao = InMainDaoFactory.getInstanceOfInMainDAO();
	@Override
	public InMainModel[] getAll() {
		Collection<InMainModel> col = inMainDao.getAll();
		col.add(null);
		return col.toArray(new InMainModel[0]);
	}
	@Override
	public InMainModel[] getInMainsByCondition(InMainQueryModel imqm) {
		Collection<InMainModel> col = inMainDao.getInMainsByCondition(imqm);
		col.add(null);
		return col.toArray(new InMainModel[0]);
	}
	
	
}
